Skip to content

Conversation

@AllenJB
Copy link
Contributor

@AllenJB AllenJB commented Oct 11, 2025

No description provided.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pcntl_waitid already has the parameter documented. Can you align the explanation: https://www.php.net/manual/en/function.pcntl-waitid.php?

) (remove duplicate example; align parameter descriptions)
) (remove duplicate example; align parameter descriptions)
) (remove duplicate example; align parameter descriptions)
@AllenJB
Copy link
Contributor Author

AllenJB commented Oct 28, 2025

pcntl_waitid already has the parameter documented. Can you align the explanation: https://www.php.net/manual/en/function.pcntl-waitid.php?

Done

@AllenJB AllenJB requested a review from TimWolla October 28, 2025 16:07
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for the example this LGTM. Perhaps it makes sense to split the example off in another PR?

print "PARENT pcntl_waitpid: No exited children.\n";
} else {
print "PARENT pcntl_waitpid: Child PID {$deadPid} exited with status: "
. pcntl_wexitstatus($status) ."\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation for wexitstatus says:

This function is only useful if pcntl_wifexited() returned true.

So, is a wifexited call missing here? Looking more carefully at the example, it uses quite a few functions from the pcntl extension. It might make sense to include it in https://www.php.net/manual/en/pcntl.example.php instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants